﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using LinqToSql加入IUnitOfWork;

namespace DAL._4_RepositoryImplement
{
    public class ProductRepository : TestBase<Product>
    {
        #region Constructors
        public ProductRepository() { }

        public ProductRepository(IUnitOfWork db) : base((TestDataContext)db) { }
        #endregion

        /// <summary>
        /// 一个方法，也要建立这个repository，有点坏味道
        /// </summary>
        /// <param name="entity"></param>
        public override void Insert(Product entity)
        {
            base.Insert(entity);
        }
    }
}